import request from '@/utils/request'

// 获取我的岗位的工时统计列表
export function getMyWorkHoursStats(params) {
  const { page = 0, size = 10, year, month, status, search = '' } = params || {}
  return request({
    url: '/api/teacher/work-hours-stats',
    method: 'get',
    params: {
      page,
      size,
      year,
      month,
      status,
      search
    }
  })
}

// 审核工时统计
export function reviewWorkHoursStat(id, data) {
  return request({
    url: `/api/teacher/work-hours-stats/${id}/review`,
    method: 'post',
    data
  })
} 